package org.apache.camel.component.aws.s3;

import org.apache.camel.CamelContext;
import org.apache.camel.impl.JndiRegistry;
import org.apache.camel.impl.PropertyPlaceholderDelegateRegistry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

/**
 * @author ming
 * @Description:
 * @create 2019-11-10 10:06 PM
 **/
@Configuration
public class S3CitiComponent {

    @Autowired
    CamelContext camelContext;

    public S3CitiComponent() {
        PropertyPlaceholderDelegateRegistry delegateRegistry = (PropertyPlaceholderDelegateRegistry) camelContext.getRegistry();
        JndiRegistry registry = (JndiRegistry) delegateRegistry.getRegistry();
        registry.bind("client",null);
    }
}
